#ifndef TCPCONNECTION_H
#define TCPCONNECTION_H
#include <EventLoop.h>
#include <Buffer.h>
#include <Channel.h>
#include <HttpRequest.h>
#include <Httpresponse.h>

struct TcpConnection {
    struct EventLoop* evLoop;
    struct Channel* channel;
    struct Buffer* readBuf;
    struct Buffer* writeBuf;
    char name[32];

    struct HttpRequest* request;
    struct HttpResponse* response;

};

struct TcpConnection* tcpConnectionInit(int fd, struct EventLoop* evLoop);
int tcpConnectionDestroy(void* arg);



#endif // TCPCONNECTION_H
